home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Scope
/
Scope Disk #058 (199x)(Scope PD)(US)[WB].zip
/
Scope Disk #058 (199x)(Scope PD)(US)[WB].adf
/
B1Subs
/
ILBM.normal
< prev
next >
Wrap
Text File
|
1989-01-24
|
1KB
|
55 lines
END
'** To set up the Screen Load/Save
'** stuff at the start of your program.
GOSUB InitILBM
'** The picture's name can be INPUT
'** or by using the following line
FileName$="Your.pic"
'** Then use either of the following
'** lines whenever you need to load
'** or save a screen.
GOSUB ILBMloading
GOSUB ILBMsaving
'** The above lines load and save screens
'** but to draw, type or access those screens
'** you must open a SCREEN and WINDOW with
'** the matching resolution and number
'** of bit-planes.
REM - Assembly Routines
REM - by Charles VASSALLO - March 88
REM - (33 route des Traouieros, 22730 Tregastel - France)
InitILBM:
DIM Code%(1220)
OPEN "ILBM.code" FOR INPUT AS #1
I=0
WHILE NOT EOF(1)
INPUT#1,Code%(I) : I=I+1
WEND
CLOSE #1
OpenFlag=0
RETURN
ILBMloading:
file0$=FileName$+CHR$(0)
ILBMload&=VARPTR(Code%(0))
CALL ILBMload&(SADD(file0$))
RETURN
ILBMsaving:
file0$=FileName$+CHR$(0)
ILBMsave&=VARPTR(Code%(0))+1378
CALL ILBMsave&(SADD(file0$))
RETURN
Ult: REM - OpenFlag=PEEK(2297+VARPTR(code%(0))) can be tested in case of error